package br.ufc.great.client;

import java.io.Serializable;
import java.util.Vector;

public class DTXOperation implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1972813346610596106L;
	protected String id;
	protected String result;
	protected Vector<DTXSite> sites;
	protected int type;

	public static final int QUERY = 0;
	public static final int INSERT = 1;
	public static final int DELETE = 2;
	
	public DTXOperation(String id, Vector<DTXSite> sites, int type) {
		this.id = id;
		this.sites = sites;
		this.type = type;
	}

	public String getId() {
		return id;
	}

	public Vector<DTXSite> getSites() {
		return sites;
	}

	public String getResult() {
		return result;
	}
	
	public void setResult(String result) {
		this.result = result;
	}

	public int getType() {
		return type;
	}
	
}
